home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Files
/
DirectoryID.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
594b
|
32 lines
// DirectoryID.h
#ifndef DirectoryID_h
#define DirectoryID_h
#ifndef Integers_h
#include "Integers.h"
#endif
class DirectoryID
{
private:
int32 id;
DirectoryID( int32 value )
: id( value )
{}
public:
static DirectoryID Make( int32 value ) { return value; }
static DirectoryID Root() { return fsRtDirID; }
static DirectoryID AboveRoot() { return fsRtParID; }
int32 Number() const { return id; }
bool operator==( DirectoryID f ) const { return id == f.id; }
bool operator!=( DirectoryID f ) const { return id != f.id; }
};
#endif